package com.algorithm.dijkstra;

import lombok.Data;

import java.util.List;

/**
 * @author xiwai [hww282306@alibaba-inc.com]
 * @version 1.0
 * @date 2020/11/11 6:47 下午
 */
@Data
public class DijkstraNode {

    private String name;

    private int cost;

    private List<DijkstraNode> nexts;

    public DijkstraNode(String name, int cost, List<DijkstraNode> nexts) {
        this.name = name;
        this.cost = cost;
        this.nexts = nexts;
    }
}
